//
//  Method.swift
//  CooperSwift
//
//  Created by Mac on 2020/1/7.
//  Copyright © 2020 CooperSwift. All rights reserved.
//

import Foundation


public struct PublicMethod {
    
    /// 延迟多少秒后执行
    /// - Parameters:
    ///   - seconds: 时间
    ///   - completion: 回调
    public static func delay(_ seconds: Double,  completion: @escaping () -> ()) {
        DispatchQueue.main.asyncAfter(deadline: .now() + seconds) {
            completion()
        }
    }

}
